<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/10/18 0018
 * Time: 14:05
 */

namespace Cuke\Http\Router;


use Phalcon\Mvc\Router\Group;

class ConnectorRoutes extends Group
{
    public function initialize()
    {
        $this->setPaths(['controller'=>'Connector','namespace'=>'Cuke\\Controllers']);
        $this->setPrefix('/connector');
        $this->addGet('/list',['action' => 'list']);
        $this->add('/detail/{connector_id:int}',['action' => 'detail']);
        $this->add('/edit/{connector_id:int}',['action'=>'edit']);
    }
}